package ru.rchervot.sanasar.client.rpc;

import ru.rchervot.sanasar.client.model.ResultsPage;
import ru.rchervot.sanasar.client.model.SearchResultsItem;

import com.google.gwt.user.client.rpc.IsSerializable;

public class GetPageResponse<T extends SearchResultsItem> 
extends Response implements IsSerializable {
	private ResultsPage<T> page;
	
	public GetPageResponse() {}
	
	public GetPageResponse(ResultsPage<T> page) {
		this.page = page;
	}
	
	public ResultsPage<T> getPage() {
//		return new DefaultPage(resultsPage); // TODO understand why Ryan create new object here
		return page;
	}

}
